<template>
  <div>
    <div class="card p-3 mt-3 bg-white">
      <div class="card-header d-flex ai-center">
        <i class="iconfont" :class="`icon-${icon}`"></i>
        <div class="fs-xl flex-1 px-2"><strong>{{title}}</strong></div>
        <i class="iconfont" :class="{'icon-menu': !plain}"></i>
      </div>
      <div class="card-body pt-3">
          <slot></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: { type: String, required: true },
    icon: {type: String, required: true},
    plain: {type: Boolean}
  },
}
</script>